package com.blank.blood.service.impl;

import com.blank.blood.dao.StudentDao;
import com.blank.blood.service.StudentService;
import lombok.Setter;

import java.util.List;

/**
 * @author blank 2020-12-4 下午 06:54
 * @version 1.0.0
 */
public class StudentServiceImpl implements StudentService {
    @Setter
    private StudentDao studentDao;
    @Override
    public int delStudentById(int id) {
        return studentDao.deleteStudent(id);
    }

    @Override
    public List getList() {
        return studentDao.selectAll();
    }
}
